Skip to content

fix(roadmap): implement takes a plan that needs a fix - #4494

Merged
dan-petty merged 3 commits into
mainfrom
fix/4477-implement-takes-a-plan-that-needs
Nov 11, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/4477-implement-takes-a-plan-that-needs

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The implement job took a Staged item while the draft of its plan held the label plan/needs-fix, which the stage review sets on a plan with an open finding. The Service then started runner Jobs on plans that the review refused, such as #3443 and #3451, and both Jobs stopped on limit_reached.

  • _Judge._pull_reason leaves out an open draft that holds PLAN_NEEDS_FIX_LABEL, with a reason that names the label and the pull request. It reads the labels that it reads already, and takes the item again when the label is gone.
  • The row implement logs such an item once for each draft and records the draft in the new mark implement.needs_fix. A round that judges the item without the label clears the mark.
  • The implement page, the record table and the spec roadmap-implement-job name the reason and the mark.

Closes #4477

Change: openspec/changes/archive/2026-11-11-4477-implement-takes-a-plan-that-needs/

The implement judge leaves out an open draft that holds the label
plan/needs-fix, and the Service logs such an item once for each draft.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 11, 2026
@dan-petty

dan-petty commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner Author

Evidence and checks

Premise (read only).

Item Plan pull request Label plan/needs-fix set Runner Job started Job end
#3443 #4352 2026-11-10T10:51:32Z 10:57:29Z, devops-cli-runner-20261110-105724-b626, --item 3443 Failure class limit_reached, stopped 1
#3451 #4353 2026-11-10T11:40:27Z 11:47:47Z, devops-cli-runner-20261110-114742-c187, --item 3451 Failure class limit_reached, stopped 1

Sources: the issue events of #4352 and #4353, kubectl -n devops get jobs, and kubectl -n devops logs job/<name>. A person removed the label at 13:47Z and 14:16Z.

Fail-to-pass. uv run devops ci fail-to-pass --base origin/main replayed the 148 tests of the three changed test files on the base: 6 failed and 142 passed. The 6 tests pass on the head (the runs below).

  • test_an_item_whose_draft_holds_the_label_plan_needs_fix_is_left_out_with_the_label_as_reason
  • test_a_round_creates_no_job_while_the_draft_holds_the_label_plan_needs_fix_and_logs_it_once
  • test_a_round_creates_the_job_once_the_label_plan_needs_fix_is_gone_and_clears_its_note
  • test_a_round_logs_the_label_plan_needs_fix_again_when_it_comes_back_after_it_was_gone
  • test_each_key_of_the_implement_record_has_a_reader_in_the_table
  • test_the_reader_of_a_key_reads_it[implement.needs_fix]

Other checks. The selection, submit and explain tests: 153 passed. The record readers and the workflow document invariant: 126 passed. uv run devops openspec check, uv run devops ci docs and ruff pass. The full local devops ci did not run: the CI lock had a queue of 5 runs, so this pull request relies on the GitHub checks.

Items that the live Service skips now. None. search/issues?q=repo:dan-petty/devops-cli+is:pr+is:open+label:plan/needs-fix returns 0 open pull requests. Only #4189 and #3475 hold the label, and both are closed.

ConfigMap and order. No setting changes. The live ConfigMap needs no change, and the rollout needs no order. The first round after the rollout logs each held item once and writes implement.needs_fix on it.

Related. #4078 and #4041 propose that implement takes no unmerged plan, and #3976 proposes that it reads the check runs of the plan. This change keeps the Staged route and reads only the label. #4492 was my duplicate of #4477, and I closed it.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 05:08
@dan-petty
dan-petty enabled auto-merge (squash) November 11, 2026 05:08
@dan-petty
dan-petty merged commit c3f62a9 into main Nov 11, 2026
32 checks passed
@dan-petty
dan-petty deleted the fix/4477-implement-takes-a-plan-that-needs branch November 11, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): implement takes a plan that needs a fix

1 participant